package com.example.myapplication.api;

import com.example.myapplication.entity.BaseResponse;
import com.example.myapplication.entity.BaseResponseAlbum;
import com.example.myapplication.entity.BaseResponseSongUrl;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface MusicApi {

    @GET("search/hot/detail")
    Call<BaseResponse> getSearchHot();

    @GET("search")
    Call<BaseResponse> getResultSong(@Query("keywords") String keywords);

    @GET("search")
    Call<BaseResponse> getResultSinger(@Query("type") int type,
                                             @Query("keywords") String keywords);

    @GET("search")
    Call<BaseResponse> getResultAlbum(@Query("type") int type,
                                       @Query("keywords") String keywords);

    @GET("song/url")
    Call<BaseResponseSongUrl> getSongUrl (@Query("id") String id);

    @GET("album")
    Call<BaseResponseAlbum> getAlbum (@Query("id") int id);

    @GET("toplist")
    Call<BaseResponse> getRank ();

    @GET("playlist/detail")
    Call<BaseResponse> getSongList(@Query("id") String id);

    @GET ("top/mv")
    Call<BaseResponseAlbum> getMV();
}
